# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname="hw-probe"
pkgver=1.5
pkgrel=0
pkgdesc="A tool to probe for hardware and upload result to the Linux Hardware Database"
url="https://github.com/linuxhw/hw-probe"
arch="noarch !mips !mips64" # blocked by acpica
license="LGPL-2.1"
makedepends="perl-dev"
depends="perl-digest-sha1 perl-data-dumper perl-libwww
hwinfo curl dmidecode smartmontools hwids-pci hwids-usb hwids-net
memtester hdparm i2c-tools acpica sysstat"
options="!check" # no test available
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxhw/hw-probe/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	make PREFIX=/usr
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="80dd2484bd317ac1e86d7f434626f288648aebf110a4bf81c0c05548abcb19d990119c1690fcb5796384a6c32fd5c1e827698a31165bfc41ef6df9fc7fdd368d  hw-probe-1.5.tar.gz"
